<?php


namespace app\zwt\validate;


use think\Validate;

class AdminValidate extends Validate
{
    protected $rule =[
        'name' => 'require',
        'image' => 'require',
        'mobile' => 'require|mobile'

    ];
    protected $message =[
        'name.require' =>'昵称不能为空',
        'mobile.require' =>'手机号不能为空',
    ];
    protected $scene =[
        'add' =>['name','image'],
        'edit' =>['name'],
    ];
}
